package com.boboPlanet.comm.rabbitmq;

import com.boboPlanet.comm.rabbitmq.producer.IMqBuild;

import java.util.List;

/**
 * @Description: TODO 星球 mq 生产者,使用时注入即可
 * @Author: mis_wu
 * @Date: 2023/6/22
 * 可加 SendCallback callback 回调
 **/
public interface PlanetMqProducer {

    <T> void sendMsg(IMqBuild build, T data);

    <T> void sendMsg(T data);

    <T> void sendBatchMsg(IMqBuild build, List<T> data);

    <T> void sendAsyncMsg(IMqBuild build, T data);

    <T> void sendAsyncBatchMsg(IMqBuild build, List<T> data);
}
